<? php 
$applicationstatus=intval($_GET['NewApp']);
$accountid=intval($_GET['AccountID']);
$link = mysql_connect('cash2uca.ipagemysql.com', 'cash2uca', 'actW3740!@#$'); 
	if (!$link) { 
	    die('Could not connect: ' . mysql_error()); 
		} 
mysql_select_db(cash2uca);
$query="SELECT * FROM Applications WHERE NewApp='$applicationstatus' and AccountID = '$accountid'";
$result=mysql_query($query);

?>
<div id="informationdiv">
<? php while($row=mysql_fetch_array($result)) { ?>
	<tr>
	<td width="140" align="right">AccountID:</td>
        <td width="170"><input type="text" style="width: 150px;" value="<? php echo $row['AccountID'];>" 		name="ACCID"></td>
        <td width="230" align="right">Loan Amount:</td>
        <td width="160"><input type="text" style="width: 150px;" name="LOANAMT" value="<? php echo 
		$row['BAmount'];>"></td>	
	</tr>

	<tr>
	<td width="140" align="right">Loan Cost:</td>
        <td width="170"><input type="text" style="width: 150px;" value="<? php echo $row['Costs'];>" 		name="COSTID"></td>
        <td width="230" align="right">First Pay Day:</td>
        <td width="160"><input type="text" style="width: 150px;" name="fpayday" value="<? php echo 
		$row['FirstPayDay'];>"></td>	
	</tr>

	<tr>
	<td width="140" align="right">Visit TImes:</td>
        <td width="170"><input type="text" style="width: 150px;" value="<? php echo $row['NumberofVisits'];>" 		name="visittime"></td>
        <td width="230" align="right"></td>
        <td width="160"></td>	
	</tr>


<? php } ?>
</div>





































